﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using DevExpress.XtraEditors;
using System.Data.SqlClient;

namespace TCCT_CTC_CSDLDangVienV1
{
    public partial class frmInputBox : frmBase
    {
        public frmInputBox()
        {
            InitializeComponent();
        }
        private void frmInputBox_Load(object sender, EventArgs e)
        {
            try
            {
                ApplyUI(); 
            }
            catch (Exception _ex)
            {
                ShowErrorMessage(_ex);
            }
        }
        private void ApplyUI()
        {
            UI.TextBox.ApplyDefault(txtKetQua);

            UI.Button.ApplyAccept(btnChapNhan);
            UI.Button.ApplyCancel(btnBoQua);
        }



        private void btnBoQua_Click(object sender, EventArgs e)
        {
            DialogResult = DialogResult.Cancel;
            Close();
        }

        private void btnChapNhan_Click(object sender, EventArgs e)
        {
            DialogResult = DialogResult.OK;
            Close();
        }





    }
}